home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
graphic
/
chiaro10.zip
/
GIFSTRIP.DOC
< prev
next >
Wrap
Text File
|
1993-03-12
|
30KB
|
740 lines
GIFSTRIP 2.2 DOCUMENTATION
==========================
James W. Birdsall
03/19/93
0. CONTENTS
-----------
0. CONTENTS
1. INTRODUCTION
1.1 Quick Reference
1.2 Copyright, License, and Warranty Disclaimer
2. USAGE
2.1 Targets
2.1.1 Wildcards
2.2 Options
2.2.1 Output redirection options
2.2.2 Rebuilding and processing options
2.2.3 Temporary Storage Options
2.2.4 -# Version
2.2.5 -? Help
3. OUTPUT
3.1 File Header Line
3.2 Internal Section Lines
3.2.1 Image
3.2.2 Extension Block
3.2.3 Other Lines
3.3 Terminator Line
3.4 No Rebuild
3.5 Rebuild
3.6 Examples
4. THE END
1. INTRODUCTION
---------------
GIFSTRIP is a program of the Chiaro suite. It removes excess
characters, if present, from GIF-format image files. Excess characters
may be added in a variety of ways, including XMODEM-protocol file
transfers or transfer from a Macintosh computer. I have observed files
with anywhere from one byte to 13K of excess characters; in the latter
case, the size of the file was almost doubled. GIFSTRIP also does some
basic file analysis and enforces a few format requirements which are
sometimes ignored. For temporary storage, it can use disk files and most
types of memory. By default, it uses all available types of memory first
and only uses disk space to make up the shortfall if there is not enough
space available among all the different types of memory (see section
2.2.3 for a more detailed discussion). By default, GIFSTRIP also keeps
the original file around until the new file has been written to disk
successfully (see section 2.2.2 for a more detailed discussion).
1.1 Quick Reference
-------------------
This is a quick summary of the usage and options of GIFSTRIP.
Invoking GIFSTRIP with the option "-?" will produce a similar summary.
Complete explanations may be found in section 2.
usage: gifstrip [options] target [target ...]
target filename, filename with wildcards, or path. Wildcards
are *, ?, and ranges or groups specified in []. A
range or group may be complemented with ^ or !.
-b BATCH: suppresses all console output. Should be first
on the line. Returns ERRORLEVEL 0 if OK or stripped
OK, 1 if a non-GIF file was found, 2 if the GIF file
ended unexpectedly, or 3 on error.
-r Sends error messages to stderr instead of stdout.
-f Forces rebuild. Normally file is not rebuilt if no
extra characters are found and file meets format
requirements.
-n Disables strict format requirements.
-m Enables checking for leading junk characters (from a
Mac, for example).
-o Causes the original file to be erased before the new
file is written to disk. This is useful if the disk
is nearly full and there is not enough room for two
copies of the file.
-c Do not use CONVENTIONAL memory for temporary storage.
-e Do not use EMS memory for temporary storage.
-x Do not use XMS memory for temporary storage.
-d Do not use DISK for temporary storage.
-s Use ONLY DISK for temporary storage. Equivalent to
the combination -c -e -x.
-tpath Specify path for DISK temporary storage.
-# VERSION: Prints version information on internal
modules, then exits.
GIFSTRIP automatically reads a list of targets from stdin if stdin is
redirected. Targets must be separated by newlines, and are
wildcard-expanded in the same way as command-line targets. Note that
command-line targets are ignored if stdin is redirected; if stdin is not
redirected, there must be at least one target on the command line.
Note that at least one of conventional, EMS, XMS, or disk storage
must be allowed.
Options are case-insensitive, and may not be combined.
1.2 Copyright, License, and Warranty Disclaimer
-----------------------------------------------
The Graphics Interchange Format(c) is the Copyright property of
CompuServe Incorporated. GIF(sm) is a Service Mark property of
CompuServe Incorporated.
GIFSTRIP is not in the public domain. All the files are copyright
1993 by James W. Birdsall, all rights reserved.
The following license applies to the entire Chiaro suite, which is
made up of all the files listed in the file MANIFEST. Permission is
granted to do the following:
You may freely redistribute this archive, so long as it contains
all the files listed in the file MANIFEST, intact and
unmodified.
You may use the programs contained in this archive for a period
of 30 days for evaluation purposes.
Payment of the $10 shareware fee (which covers all the programs in
the Chiaro suite) licenses you to use the Chiaro suite beyond the
evaluation period. This license-to-use specifically includes use by
bulletin board systems and other commercial or private information
services.
Registered users will also receive update notices and bug reports,
and are entitled to use future versions without further payment.
The contents of the distribution archive, and all other related
files, information, and services are provided "as is" and without
warranty. To the extent permitted by applicable law, the author
disclaims all warranties, express or implied, including but not limited
to, any implied warranty of merchantability or fitness for a particular
purpose. While effort has been made to ensure that the files,
information, and services are accurate and correct, the author shall not
be liable for damages arising out of the use of or inability to use this
product, including but not limited to, loss of profit, data, or use of
this software, or special, incidental, or consequential damages or other
similar claims, even if the author has been specifically advised of the
possibility of such damages. Some states do not allow the exclusion of
incidental or consequential damages, so the foregoing limitation may not
apply to you.
Information on contacting the author is provided at the end of this
file.
2. USAGE
--------
GIFSTRIP may be called with zero or more options interspersed with
zero or more targets. All options are scanned before any file searching
is done, so order of options and targets is unimportant. If the standard
input is not redirected, at least one target must be specified on the
command line. If the standard input is redirected (is not the keyboard),
GIFSTRIP will detect this and will attempt to read a list of targets,
separated with newlines, from the standard input. Targets on the command
line will be ignored, but options on the command line will be used. This
feature is for use with the "front end" option of CHILS.
GIFSTRIP requires 110,000 bytes of free conventional memory to run.
Additional free conventional memory (and/or free EMS and/or XMS memory)
improves performance.
2.1 Targets
-----------
A target can consist of a filename (optionally with path), a path, or
a filename with wildcards (again, optionally with path). In the case of
a filename, that file is checked. In the case of a path, all files in
the specified directory are checked. In the case of a filename with
wildcards, all files in the appropriate directory (the current directory
if no path is given) matching the wildcards are checked.
If a file that is checked is a GIF format file, it is processed. If
it is not, it is not processed.
2.1.1 Wildcards
---------------
Wildcards are much closer to the UNIX standard than the MS-DOS
standard. The characters * and ? retain their ordinary meanings but
matching